﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PerfumeShopManagement.DAL
{
    public interface IDal<T, Tid>
    {
        T GetObjectById(Tid id);
        List<T> GetAllObjects();
        List<T> GetObjectsByCriteria(T obj);

        bool Insert(T obj);
        bool Update(T obj);
        bool DeleteById(Tid id);
    }
}
